package com.googlecode.cswish.struts.hibernate.ehcache;

import java.util.Map;

import net.sf.ehcache.Element;
import net.sf.ehcache.search.attribute.AttributeExtractor;
import net.sf.ehcache.search.expression.BaseCriteria;
import net.sf.ehcache.search.expression.Criteria;

public class AlwaysNotMatch extends BaseCriteria {

    /**
     * {@inheritDoc}
     */
    public boolean execute(Element e, Map<String, AttributeExtractor> attributeExtractors) {
        return false;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Criteria and(Criteria other) {
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Criteria or(Criteria other) {
        return other;
    }
}
